package com.itheima.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@Slf4j
public class PaymentController {
    @Value("${server.port}")
    private Integer port;

    @RequestMapping("/payment/consul")

    public String PaymentInfo() {
        int uu=0;
        return "springcloud with consul: " + port + "\t\t" + UUID.randomUUID().toString();
    }
}

